<div class="competitions view">
<h2><?php  echo __('Competition');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($competition['Competition']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($competition['Competition']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Question'); ?></dt>
		<dd>
			<?php echo h($competition['Competition']['question']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Note'); ?></dt>
		<dd>
			<?php echo h($competition['Competition']['note']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($competition['Competition']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Domain'); ?></dt>
		<dd>
			<?php echo $this->Html->link($competition['Domain']['name'], array('controller' => 'domains', 'action' => 'view', $competition['Domain']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Competition'), array('action' => 'edit', $competition['Competition']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Competition'), array('action' => 'delete', $competition['Competition']['id']), null, __('Are you sure you want to delete # %s?', $competition['Competition']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Competitions'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Competition'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Domains'), array('controller' => 'domains', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Domain'), array('controller' => 'domains', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Competition Posts'), array('controller' => 'competition_posts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Competition Post'), array('controller' => 'competition_posts', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Competition Posts');?></h3>
	<?php if (!empty($competition['CompetitionPost'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Name'); ?></th>
		<th><?php echo __('Email'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th><?php echo __('Url'); ?></th>
		<th><?php echo __('Accept'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Competition Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($competition['CompetitionPost'] as $competitionPost): ?>
		<tr>
			<td><?php echo $competitionPost['id'];?></td>
			<td><?php echo $competitionPost['name'];?></td>
			<td><?php echo $competitionPost['email'];?></td>
			<td><?php echo $competitionPost['content'];?></td>
			<td><?php echo $competitionPost['url'];?></td>
			<td><?php echo $competitionPost['accept'];?></td>
			<td><?php echo $competitionPost['created'];?></td>
			<td><?php echo $competitionPost['competition_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'competition_posts', 'action' => 'view', $competitionPost['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'competition_posts', 'action' => 'edit', $competitionPost['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'competition_posts', 'action' => 'delete', $competitionPost['id']), null, __('Are you sure you want to delete # %s?', $competitionPost['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Competition Post'), array('controller' => 'competition_posts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
